package cn.yunyichina.provider.framework.dubbo.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.service.ISb;

/**
 * Created by 15-AK on 2017/7/13.
 */
public class SbService  {
    static final String serviceName = "sbService";

    static ISb bedService = null;

    static {
        bedService = (ISb) SpringContextHandler.getBean(serviceName);
    }

    public static ISb getBaseClient(){
        return bedService;
    }

    public static Response callUnderlineFromInternal(String method, String data) {
        return bedService.callUnderlineFromInternal("", method, data, (short) 0);
    }

    public static Response callUnderlineFromInternal(String sessionId, String method, String data) {
        return bedService.callUnderlineFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String sessionId, String method, String data) {
        return bedService.callHumpFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String method, String data) {
        return bedService.callHumpFromInternal("", method, data, (short) 0);
    }
}
